import { createSSRApp } from 'vue';
import App from './App.vue';
import pinia from './stores';
// 引入 uView UI
import uView from './uni_modules/vk-uview-ui';
import router from '@/utils/router';
import HxNavbar from '@/components/hx-navbar/index.vue';
import DictTag from '@/components/dict-tag/index.vue';
uni.$hxRouter = router;
export function createApp() {
	const app = createSSRApp(App);
	// 使用 uView UI
	app.use(uView);
	app.use(pinia);
	app.component('HxNavbar', HxNavbar);
	app.component('DictTag', DictTag);
	return {
		app,
	};
}
